moved pure lua equivalents to separate folder