profile API improved