fixing a bug where i didn't set the username for the directory its writing to