added getcwd