externalizing all dmenu functions in a file