minor sicurity fixes