fix uiScale and bugs, add pack.lua