add basic conditions for success checking and update for refactor of packages