modified for local dir changes