got rid of ifdebug on setlocations