fix apport and add rar file support