portability fix