modified to remind user that input parameters are directories not files