fixed #78, added simple dev-mode toggle