read only bug fix for 2 times checkout and added new private method