fixed a bug and changed .cfg for debbugging