rename env to dsn
strip out old environment parsing logic