trunc msg and bug fixing on regparts