repair make install and optimize finding non-integer power