typo
added path require
cleaned up prompt object structure