fixing needing directory