further bootstrap and added support for 'dev mode'