fixed linebreak bug, still have issue with mkdir var