refactoring add livescripts