reverted back to not use IRepository think there was something wrong in merge, its working but not as intended

Signed-off-by: Carel <dutoit.carel7@gmail.com>