the attruibte vars are working but interfering with parsing somehow
works after many changes.. so need to commit