moved task posting routine to a bg worker