added verification if apc is enabled
Merge pull request #88 from luciano-jr/solveapc

added verification if apc is enabled