dom processing + other stuff