xbmc startup - need refacto