code and add warning + example to readme