change install dir & add some method for compatible pre-version