move path option inside the flock implementation