some changes for better html and emmet processing