set up sessions and started adding in skeleton registration functions