Apc compatibility when running from cli