changed plugins init failure from alert to console.log; code cleanup part 1