fixed so that it works properly with abf2