fixed pa support
added flycheck
various tweaks added