analysis scripts principles