methodized getting current directory