adding main

work in progress for a while.