added subroutine by trunk

This line should not be removed, but moved instead. We still want the "global outcall subroutine" to be called, but only once.