move get profile to a place where it will be called on load