added basic path stuff; still a few bugs