filepath arguments working correctly