added path functionality