convert to new expect syntax for receiver
remove deprecation