abstract some refresh stuff down