updated server structure into collection files, set permissions