adding longer wait and debugging