more logic in main.py, added URLs, etc