implement init command