added compile and detecion option to plugin