removed javafx thread check, and privatized vals and defs as appropriate