added sending logtype to callbacks