various bug fixes, function to check inputs, and AP data upload