add a post_init hook for apps