first attempt at making beforeRender() async #282

Just for review