added support for calling .end from after method - #257