added supports_* methods; fixed bugs with server 1.8