proper error logging in case of eval fails