add check for editor environment variable