allow for paramaters to be functions
added scope to compiled parameters