add -max param to gotail utility