make pidfile, dir, port configurable