script engine pattern matching, admin-ui fixes