moved some files into a library so I can add other front ends