platform variable cleanup