begin work on bed parsing