bugfix: regex
completed namespace id parsing code