added support for pre, post, and depends clauses