modified request checks
added optional handler path
updated to run on amazon