added check if this is the first 'up' or not