added support for functions and subroutines without bind