remove non portable code