Contest app fixes and utils optimization