add more logging to the front-end part