add srcdsdiag.sp; entity logger and diag script