correct dirs
separate funcs for separate things