debugging parser - select to be implemented