core code for website