implemented export command