main and getpost added