fixes #90 unable to declare module with custom class.