logging changes, fixed refresh bug