this is the code from the plugin RollerCoaster Manager (rcm)