code should now be compatible with akka 2.1.4 and 2.2.0