staring to add component logic
adding component logic to the API
adding component logic to the API