add script to write availability request messages (will likely be removed or librarified)