rewrote parseCustomAttributes()
smarter splitting of att : val pairs