make crypt needed more robust