markup .parse and .write semi working