added parsing atag support