move localsettings to ts
some cleanup