modify export functionality