implement init task