updated InitPaths to work with 2d