Initial export implementation (mre a template code still to be improved)