fixing last issue with working directories