update to API 25 changes by Csaba Henk <csaba.henk@creo.hu>