adding function to export features (sp object)