remove unused code
update http message interface to current psr