Added direct install and prefix_id detection