adds new initialize function to log when something has changed