add first command and some util functions