add import state and CLI commands