add log functionalities