phone checkin bitchez (also fixing permissions setting, exitcode, and readlink for input file)