added premain