use bash resource instead