separated namespace parsing to own function, added TODOs for not working cases