added dynamic working directory