run "library" code as its loaded