fixing recursive dir errrrr