fix log references
tidy up scripts