init settings

Ugly code, buy basic stuff added