change file data structure to bytearray to increase the performance
updating package