update parser

remove .next(), add backgrounds checking