additional checks for object and schema triggers
minor bug fixes in consumer.c