test for mainfraim - not finished yet!!!!!