split file private/public