non-working fix for angular to post messages