added EDITOR environment variable