Fixed scope conflict in lib and add more info to task