waiting at end of receive works fine