add interface for PgMAQuery