refactored resultset in flexstore and libXL writer