Missing stuff in global scope and other

Signed-off-by: emanuele <emanuele45@gmail.com>