remove unused code
fix some problems with my rack/em interface