functions: add/remove/rewrite various functions