implemented a library for calling a some callback after many other callbacks was called