modyfy to get working directory