fix referencing nil variables
move protection implementation into an implementation directory
add preliminary landsale support for the areas mod