fixed plugin usage and added build task