locally scoped module pattern