updated for case errors  (linux)