simplified module registration logic