made stylus file more modular