added simple loader
load lib with loader, fixed namespaces