support package install method, extract to avoid package scripts