removed getcwd for better interoperability