org2xm: wrap script so it can be called from anywhere