move instantiation out of lib