less magic numbers, more named constants
add something grep like to definition module, clean trimpre