global update, fixes #10, #9, #8, #7, #6, #5, #4