export directives for all functions & correcting the namespace