Alternative to colvin and gibbons trick which works in containers