add console log and error warning proxy