moved loader to sys and made it a module