put the lib in the core.. blah not pretty but want to start really hacking the core