quite simple solution to avoid callback