fixed runtime pipeline to apply pipeline in correct order
Merge pull request #7 from kevinbuch/add_to_middleware

Fixed runtime pipeline to apply pipeline in correct order