pidfiles first (rather unsuccessful) attempt