move to autoload and rename all functions
fixes naming bug