better authorization and visibility parsing