now with modes 'dev' and 'pub'