make mymod into module