made it so it outputs to the directoryamde