this is hack, somebody with better understanding of bacon could make nicer implementation