set default state and role when parameter is blank