updated a_foreman to use a lua script instead of multiple calls
updated perf tests -- 2-3x perf improvement from change to lua