whale as a module