updated for use with linemanjs