fix file permissions
add plugin functionamity