added API functionality for checking out items