allocate correct sized argument array for callback
remove debug messages