migrating to xts and cleanup