cleaned up the local touch module to modularize the functionality