fixed security warnings and misc debugs