call class methods only if present