split dir, add setup