throw error when module already defined