add pattern support for automatic file compilation