added RESULT dir check