preparations and fixes