making datasources serializable