add -d to run as daemon, -P run with partner