optimizations, leaning, and all that good stuff

Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>