first stab at classpath resolution, but pretty sure it's wrong