got getBlockLocations working, sorted out some path relative bugs