using strings instead of msg in callbacks