improvements for handling of function parameters