improved pin mapping. Fixed async example.