errors, doesn't handle updates correct atm