adding queue and initializing repository