adds support for filtering profile methods, fix #40