persisence.connect callback can be undefined