fixed -snip portability