started adding a profile schema - need to work out how it works, and fix everything up