added insertFields and quote methods