changed the parsing works in main.shtml