make private functions
fixed bugs in import/load