* added in-memory preprocessing