move helper functions to yarrrconfig