reorganization; poco test move code out of main; starting to try to get structure working --- but it is failing