similar to the PR in analysistools
@meliachevitch will probably have the same comment here as well ;)