implemented ratdec parsing