added a few fixes to capere