state filtering before sharing - TODO: look for a solution to not share equalStates
filtering states + doc improved