handle dev envs correctly, closes #359

cc @calvinfo