allow afterRender function to be different per module
fixes #7