bug fixes/clean up warnings/no ctrl chrs in output