changed the lib funcs, instance is no longer hidden in the lib