allow private directory
refactored for digome