removes some deprecated callback arguments