initial work done without any GUI