fix for case where dirs haven't been made
broken each editor out into own file for simplicity
better path