fixed crucial bug with profiles and updated todo