fixed to work with latest chord library