split sources into processing and max directories