align script with documentation