set up class namespace relative to window