re-write module for individually scoped instances