update component to new port api
Merge pull request #8 from djdeath/new-port-api

Update components to new port api