made parsing controllers more robust