trimming package files