resolved bug in localisation, added debug panel