implement pattern entity for patterns_server