added xbmc init support