class parsing works 95%