making a start on extracting sdk, so it can be linked to diff apps