DEV: added option to use periodic x-coordinates