sets up all local settings