completed requirements
fixed directory generation