added argument binding for function handlers