First support to forest compartments, fixed some id issues