doc + safer scripts