added date functions, and pwd