fix for failing findsafepos? :)

also removed most debugging where it was no longer needed