added wp8 compatibility