added functionality for "init" command. lol.