add before filters in middleware. make Stackable a normal class (not using trait)