small bugfixes; added only_used filter