update components to the new port API
Merge pull request #11 from djdeath/new-port-api

update components to the new port API