fix bugs with inpupts outputs code
change to give dom element only to the
fix type checker