forked version of the original com_localise for experimental purposes