add stolen/modified config from Maciek