detect environment of local dev