optimize code, fix satic file conpressor issue