another attempt at caption wrapper