mpascheck with lineno and function check