removed global namespace function, added static loader