moved post stuff to init