updated to use d50b gem