support mongolab uri from env
fix layer and map exit confirmation