added basic import/export functions