some progress with imported function names and prime example of code mess