change export format and simplify usage