modify build script for libraries & begin work on module loading