fixes to make it compatible with faye 1.0.0