update middleware order, move serve-spm after directory parse
0.2.4