add params about layid
fixed the bug about udefined is string