add more mathiasbynens functionalities and fix cdc