update attributes
fix log stuff