fixed some arg checking that was failing