added logs and pids directories