implement export (contd)

register export as a command