now works on both device and windows