added categoryField and more layers