made container name shortening smarter