Use ap to print to stdout, move hash extension to ext dir