move back 'before_element' tag; bump version to 0.40019