replace old functions
https://github.com/altocms/altocms/issues/128