implementing import functions
- pointers now handled