some misc function & desktop mode