added profile api handler prototype