use custom theme_patterns_server_patterns_table instead of system theme_table; some code clean