added registration abilities
getting endpoint from config