changed some stuff; broken now pretty much; NEED FIX APPEND_SLASH