make first version with 2 endpoints