postsynchook fixed, better index