reworked library for anx rather than gox