0.5.3 updated distance to bed check