added marker type and a little debugging info