setting up apc