updated to ignore temp directory