properly init working directory