fixed output parsing