modified bean loader