make sure files follow the naming regime