update options and stuff