dont cancel main loop from lib