add patch to loader