set dirty flag immidiately to avoid multiple calcs if something is slow