added a desktop mode