change pid directory