fixed a few pathy bugs