factor out sox dir