remove unnecessary regex module
start api rewrite