making lms/preview/cms ports env vars