fix require param
fix regex