fixed module setup to register itself only once