remove custom option handling functions from general code, they are application specific