bug fixes and base script log method