fixed a bug in module import
removed debug output
reverted exit patch