updated to run as internal tuttlibsys