moved loader initializer into init() method