better handling of charts urls