namespace support, bugfix on request

- added simple namespace support
- optimizations
- request bugfix