php scripts adjusted to new LMS class constructor