restrict unnecessary files on publish