add take command, fix critical bug in grant command