fix pathing problem with not writing to the A directory