completed support for pre and post routes