updated to some pearl changes