add checkout functionality
Merge branch 'jd'