fixing the way callback returns, logs