some raws-related code