corrected JSONification
remove useless main method