debug options and add a few method on PgURL