solution achieved
final commit for reference