adds line and src before processing and adds class for backwards compat