add resize command, fixes #3