added creation of pt directory