fixed a bunch of module development bugs