improving logging for frontend