fix log type
add sleep after subscription so pubs are delayed (preventing pub before sub done)