wrote to the wrong directory