performance improvements for initialization #65
tests for handlers #65