implemented internal queue restore