split the posix setup into two steps