changed module register method to accept arrays