some fiddling around with paths and stuff