fix pointer arguments to functions
add support for %import directives