added methods that were in cc2d-x.