added polling mechanism for parser (just to have in version control for now)