some stuff working and security stuff fixed for now