switch to portable class library, update for v2 api