configure ios properly in library.avalon
small refactorin