add insertAfter remoteAfter to stack