added object proto-regex. reworked ps func rules