prototypes that use directories and check filesizes