Backend: Clean a little bit the env and param handling